home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Art / Art Tools / RgnMaster 1.0.sit / RgnMaster ƒ / Source / Utils / QDUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-22  |  675 b   |  23 lines  |  [TEXT/KAHL]

  1. #ifndef _QDUTILS_H_
  2. #define _QDUTILS_H_
  3.  
  4.  
  5. #include <QDOffscreen.h>
  6.  
  7.  
  8. // GetGWorldBitMap #define
  9. // CopyBits requires a bitmap, but GWorlds uses pixmaps, so we have
  10. // to do some dereferencing every time we call CopyBits. Use this
  11. // #define instead to save some typing...
  12.  
  13. #define GetGWorldBitMap(theGWorld) (BitMap*)(*(GetGWorldPixMap(theGWorld)))
  14.  
  15. void CenterRect(Rect *innerRect, Rect *outerRect);
  16. void MoveRectTo(short h, short v, Rect *theRect);
  17. void MoveRgnToRect(Rect *theRect, RgnHandle theRgn);
  18. void MoveRgnTo(short hLoc, short vLoc, RgnHandle theRgn);
  19.  
  20. Boolean    NewOffScreenBitMap(GrafPtr *, Rect *, int);
  21. void DestroyOffscreenBitMap(GrafPtr);
  22.  
  23. #endif    // _QDUTILS_H_